#include "MMessage.hpp"

MMessage::MMessage(MSG_COMMAND msgCmd, int iMsgDelay, void *pInfo)
{
	m_command = msgCmd;
	m_iDelay = iMsgDelay;
	m_pAdditionalInfo = pInfo;
	m_iAddressee = -1;
}

MMessage::~MMessage()
{
	//if(m_pAdditionalInfo)
	//	delete m_pAdditionalInfo;
}

const MSG_COMMAND& MMessage::getCommand() const
{
	return m_command;
}

const int& MMessage::getDelay() const
{
	return m_iDelay;
}

const int& MMessage::getAddressee() const
{
	return m_iAddressee;
}

void MMessage::modifyDelay(int changeValue)
{
	m_iDelay += changeValue; 
}

//EOF
